#!/usr/bin/env python3
# -*- coding:utf-8 -*-

import pytest

@pytest.fixture(autouse=True)
def select_history_date(pyd, stockTrackPage, calendar):
    # 选择倒数第三个交易日
    pyd.find(stockTrackPage.calendarButton).click().sleep()
    pyd.finds(calendar.optionalDate).index(-3).click()
    pyd.find(calendar.confirmButton).click().sleep()

